﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Cadastro.aspx.cs" Inherits="TranSys_Web.TranSys.Cadastro" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <link href="Styles/cssCadastro.min.css" rel="stylesheet" />
  <script src="Scripts/jquery-1.11.1.min.js"></script>
  <script type="text/javascript">
    $(document).ready(function () {
      $('#chkUsaAutoCad').click(function () {
        var isChecked = this.checked ? true : false;

        if (isChecked) {
          $('#ddlVersaoAutoCad').removeClass('ddlDisabled');
          $('#ddlVersaoAutoCad').prop("disabled", false);
        } else {
          $('#ddlVersaoAutoCad').addClass('ddlDisabled');
          $('#ddlVersaoAutoCad').prop('disabled', true);
        }
      });
    });
  </script>
  <title></title>
</head>
<body>
  <form id="form1" runat="server">
    <section id="sectionBody">
      <section id="sectionHeader">
      </section>

      <article id="articleErro">
        <asp:Label runat="server" ID="lblErro" ClientIDMode="Static"></asp:Label>
      </article>

      <section id="sectionCadastro">
        <h2>Cadastro
        </h2>

        <table>
          <tr>
            <td>Nome
            </td>
            <td colspan="2">Nome de Usuário
            </td>
          </tr>
          <tr>
            <td>
              <asp:TextBox runat="server" ID="txtNome" CssClass="textbox"></asp:TextBox>
            </td>
            <td colspan="2">
              <asp:TextBox runat="server" ID="txtLogin" CssClass="textbox"></asp:TextBox>
            </td>
          </tr>
          <tr>
            <td>Senha
            </td>
            <td colspan="2">Confirme a senha
            </td>
          </tr>
          <tr>
            <td>
              <asp:TextBox runat="server" ID="txtSenha" CssClass="textbox" TextMode="Password"></asp:TextBox>
            </td>
            <td colspan="2">
              <asp:TextBox runat="server" ID="txtConfirmarSenha" CssClass="textbox" TextMode="Password"></asp:TextBox>
            </td>
          </tr>
          <tr>
            <td>Empresa
            </td>
            <td colspan="2">Cargo (opcional)
            </td>
          </tr>
          <tr>
            <td>
              <asp:TextBox runat="server" ID="txtEmpresa" CssClass="textbox"></asp:TextBox>
            </td>
            <td colspan="2">
              <asp:TextBox runat="server" ID="txtCargo" CssClass="textbox"></asp:TextBox>
            </td>
          </tr>
          <tr>
            <td>Telefone
            </td>
            <td>Usa AutoCad?
            </td>
            <td style="padding-left: 10px;">Versão:
            </td>
          </tr>
          <tr>
            <td>
              <asp:TextBox runat="server" ID="txtTelefone" CssClass="textbox"></asp:TextBox>
            </td>
            <td>
              <asp:CheckBox runat="server" ID="chkUsaAutoCad" Text="Sim" Checked="true"
                ClientIDMode="Static" />
            </td>
            <td style="padding-left: 10px;">
              <asp:DropDownList runat="server" ID="ddlVersaoAutoCad" CssClass="textbox" ClientIDMode="Static"
                Width="120px" Height="32px">
                <asp:ListItem Text="" Value="0" Selected="True"></asp:ListItem>
                <asp:ListItem Text="2015" Value="2015"></asp:ListItem>
                <asp:ListItem Text="2014" Value="2014"></asp:ListItem>
                <asp:ListItem Text="2013" Value="2013"></asp:ListItem>
                <asp:ListItem Text="2012" Value="2012"></asp:ListItem>
                <asp:ListItem Text="2011" Value="2011"></asp:ListItem>
                <asp:ListItem Text="2010" Value="2010"></asp:ListItem>
                <asp:ListItem Text="2009" Value="2009"></asp:ListItem>
                <asp:ListItem Text="2008" Value="2008"></asp:ListItem>
                <asp:ListItem Text="2007" Value="2007"></asp:ListItem>
                <asp:ListItem Text="2006" Value="2006"></asp:ListItem>
                <asp:ListItem Text="2005" Value="2005"></asp:ListItem>
                <asp:ListItem Text="2004" Value="2004"></asp:ListItem>
                <asp:ListItem Text="Anteriores" Value="Anteriores"></asp:ListItem>
              </asp:DropDownList>
            </td>
          </tr>
          <tr>
            <td>E-mail
            </td>
            <td colspan="2">Como conheceu o TranSys
            </td>
          </tr>
          <tr>
            <td>
              <asp:TextBox runat="server" ID="txtEmail" CssClass="textbox"></asp:TextBox>
            </td>
            <td colspan="2">
              <asp:DropDownList runat="server" ID="ddlComoConheceuTransys" CssClass="textbox" Width="254px" Height="32px">
                <asp:ListItem Text="Web" Value="Web"></asp:ListItem>
                <asp:ListItem Text="E-mail" Value="E-mail"></asp:ListItem>
                <asp:ListItem Text="Indicação" Value="Indicação"></asp:ListItem>
                <asp:ListItem Text="Outros" Value="Outros"></asp:ListItem>
              </asp:DropDownList>
            </td>
          </tr>
          <tr>
            <td colspan="3">
              <asp:CheckBox runat="server" ID="chkReceberInfoTransys" Checked="true"
                Text="Gostaria de receber informações sobre o Transys para AutoCad" />
            </td>
          </tr>
          <tr>
            <td colspan="3" style="text-align: center">
              <asp:Button runat="server" ID="btnCadastrar" CssClass="button"
                Text="Cadastrar" OnClick="btnCadastrar_Click" />
            </td>
          </tr>
        </table>
      </section>
    </section>
  </form>
</body>
</html>